﻿/*
* edirauth - http://edirauth.codeplex.com
* A .NET library and utility for authenticating to eDirectory
* Copyright (c) 2013 Matt Shirilla (http://shirilla.com)
* Licensed under the Microsoft Public License (MS-RL)
* http://edirauth.codeplex.com/license
*/

using Novell.Directory.Ldap;

namespace edirAuth
{
    public class LdapResult
    {
        int code = ResultCodes.UNSET_CODE;
        string desc = ResultCodes.UNSET_DESC;

        public LdapResult() { }

        public LdapResult(int code, string desc) {
            this.code = code;
            this.desc = desc;
        }

        public int Code {
            get { return code; }
            internal set { code = value;}
        }

        public string Desc {
            get { return desc; }
            internal set { desc = value; }
        }

        public string ToConsoleString() {
            return string.Format("code: {0}  desc:{1}", code, desc);
        }


    }//class
}//namespace
